home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
dev
/
e
/
Chris_emods.lha
/
screens.e
< prev
next >
Wrap
Text File
|
1997-09-05
|
595b
|
31 lines
OPT MODULE
/* SV: no exception handler necessary because we don't do complicate things.
** Results in much smaller code and looks cleaner.
*/
EXPORT PROC findpubscreen(scrname)
DEF pslist, -> we need no types here
found=FALSE -> already initialized
/* FindName() won't accept an NIL-pointer (enforcer-hits).
*/
IF scrname
/* look pubscreen list
*/
IF pslist := LockPubScreenList()
/* find the name
*/
IF FindName(pslist, scrname) THEN found := TRUE
/* unlock list
*/
UnlockPubScreenList()
ENDIF
ENDIF
ENDPROC found